﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using common;
using System.Net.Mail;

namespace MailSendMore
{
    public partial class Form1test : Form
    {
        public Form1test()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MailMessage message = new MailMessage();
            //邮件内容设置为消息队列内容
            message.Subject = "";
            if (MailSendHelp.sendMail(message))
            {
                MessageBox.Show("ok");
            }
            else
            {
                MessageBox.Show("no");
            }
        }
    }
}
